#include <stdio.h>
int main()
{
		int arr[10][10] = { 0 };
		int a = 1;
		int b = 1;
		for (a = 0; a < 10; a++)
		{

			arr[a][0] = 1;

			for (b = 0; b <= a; b++)
			{
				if (a == b)
				{
					arr[a][b] = 1;
				}

				if (a > 1 && b >= 1)       
				{
					arr[a][b] = arr[a - 1][b - 1] + arr[a - 1][b];
				}
				printf("%d ", arr[a][b]);
			}
			printf("\n");
		}
		return 0;
	}